<template>
	<view>
		<u-navbar :border-bottom="false" title-color="#FFFFFF" back-icon-color="#FFF"
			:is-fixed="isFixed" :is-back="isBack" 
			:background="background" 
			:back-text-style="{color: '#FFF'}" :title="title" 
			:back-icon-name="backIconName" :back-text="backText"
		>
			<view class="slot-wrap" v-if="useSlot">
				<view class="navbar-right">
					<view class="message-box right-item" @click="AddBtn">
						<u-icon name="plus" color="#ffffff" size="38"></u-icon>
					</view>
				</view>
			</view>
		</u-navbar>
		<view class="content">
			<view class="Port_img">
				<image mode="widthFix" src="https://api.zlkj-port.com/prod-api/profile/img/bg.jpg"></image>
				<!-- <image mode="widthFix" src="../../static/img/bg.jpg"></image> -->
			</view>
			
			<!-- <view class="recommended">
				<view class="item_title">驳船业务</view>
				<view class="card">
					
						<view class="card-item item">
							<navigator url="../bargeDeclare/bargeDeclare" hover-class="none">
								<image mode="widthFix" src="../../static/img/bochuan.png"></image>
								<view class="goods_name">
									<view>驳船申报</view>
								</view>
							</navigator>
						</view>
					
				</view>
			</view> -->
			
			<view class="recommended">
				<view class="item_title2">物流公司</view>
				<view class="card">
					
					<!-- <view class="card-item item" @tap="navTo('/pages/carManage/taskView')">
						<image mode="widthFix" src="../../static/img/cart.png"></image>
						<view class="goods_name">
							<view>车辆指派</view>
						</view>
					</view> -->
					<view class="card-item item" @tap="navTo('/pages/record/indexNew')">
						<image mode="widthFix" src="../../static/img/jilu.png"></image>
						<view class="goods_name">
							<view>防疫打卡</view>
						</view>
					</view>
					
					<!-- <view class="card-item item">
						<image mode="widthFix" src="../../static/img/shenhe.png"></image>
						<view class="goods_name">
							<view>提货人审核</view>
						</view>
					</view>
					<view class="card-item item">
						<image mode="widthFix" src="../../static/img/dayin.png"></image>
						<view class="goods_name">
							<view>码头办单</view>
						</view>
					</view> -->
					
				</view>
			</view>
		</view>
	</view>

</template>

<script>
	export default {
		data() {
			return {
				title: '港口详情',
				backText: null,
				backIconName: 'nav-back',
				useSlot: false,
				background: {
					backgroundColor: '#2979ff',
				},
				isBack: true,
				custom: true,
				isFixed: true,
				portName: ''
			}
		},
		methods: {
			navTo (url) {
				uni.navigateTo({
					url: url + '?portName=' + this.portName
				})
			}
		},
		onLoad(options) {
			this.portName = options['portName']
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #F5F5F5;
	}
	.u-demo {
		//height: 200vh;
		height: calc(100% - 44px);
		height: calc(100% - 44px - constant(safe-area-inset-top));
		height: calc(100% - 44px - env(safe-area-inset-top));
	}
	
	.wrap {
		padding: 24rpx;
	}
	
	.navbar-right {
		margin-right: 24rpx;
		display: flex;
		margin-left: auto;
	}
	
	.search-wrap {
		margin: 0 20rpx;
		flex: 1;
	}
	
	.right-item {
		margin: 0 12rpx;
		position: relative;
		color: #ffffff;
		display: flex;
	}
	
	.message-box {
		
	}
	
	.slot-wrap {
		display: flex;
		align-items: center;
		flex: 1;
	}
	
	.map-wrap {
		display: flex;
		align-items: center;
		padding: 4px 6px;
		color: #fff;
		font-size: 30rpx;
		border-radius: 100rpx;
		margin-left: 30rpx;
	}
	
	.map-wrap-text {
		padding: 0 6rpx;
	}
	
	
	
	
	
	.Port_img {
		width: 100%;
	}
	.Port_img image {
		width: 100%;
	}
	
	.item_title{
		    padding: 0 10px;
		    font-size: 18px;
		    color: #7d7d7d;
		    margin: 15px 0 0 0;
	}
	.item_title2{
		    padding: 0 10px;
		    font-size: 18px;
		    color: #7d7d7d;
		    margin: 35px 0 0 0;
	}
	.card {
		width: 100%;
		height: auto;
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		margin: 0;
		padding: 0 20rpx;
		box-sizing: border-box;
	}
	.goods_name {
		padding: 0 10px;
		font-size: 16px;
	}
	
	.card-item {
		width: 48%;
	    margin-top: 10px;
	    background: #Fff;
	    text-align: center;
	    padding: 20px 0;
	    border-radius: 10px;
	}
	.item image {
		width: 56px;
		height: 50px;
	}
</style>
